package com.ckf.ckfmall.user.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ckf.ckfmall.api.entity.Goods;
import com.ckf.ckfmall.api.service.GoodsService;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * @author 安详的苦丁茶
 * @date 2020/6/5 10:11
 */

@Service
@Component
public class GoodsServiceimpl implements GoodsService {
    @Override
    public List<Goods> goodsList() {
        System.out.println("进入商品实现类");
        Goods goods1=new Goods(1,"88888899999","鞋子",998.8,1000);
        Goods goods2=new Goods(2,"13233452266","衣服",999.8,8000);
        Goods goods3=new Goods(3,"13355668922","椅子",988.8,2000);

        return Arrays.asList(goods1,goods2,goods3);
    }
}
